package com.lihuan.beans;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
@Setter
@Getter
public class MessageListItem implements Serializable {

    /** id */
    private String id;

    /** 用户id */
    private Long userId;

    /** 留言内容 */
    private String content;

    /** 创建时间 */
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
   // @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    private Date createTime;

    /** 创建人姓名 */
    private String name;
}
